package com.nahan.qyz.controller.controller.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.nahan.qyz.controller.controller.UserController;
import com.nahan.qyz.user.service.UserService;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@RestController
public class UserControllerImpl implements UserController {
    @Reference(version = "1.0.0")
    private UserService userService;
    @Override
    public String login(HttpServletRequest loginReq, HttpServletResponse httpRsp) {
        return userService.login();
    }
}
